package com.itcast.homework01.work01;

import com.itcast.staticdemo.Demo06.A;

/*
2.狗类Dog 属性: 毛的颜色color 品种breed 行为: 吃饭() 看家lookHome()
1.按照以上要求定义Cat类和Dog类,属性要私有,生成空参、有参构造，setter和getter方法,采用继承简化书写
*/
public class Dog extends Animal{
    //吃饭eat()
    public void eat() {
        System.out.println(getColor() + "的" +getBreed() + "正在啃骨头.....");
    }
    // 看家lookHome()
    public void lookHome(){
        System.out.println(getColor()+"的"+getBreed()+"正在看家.....");
    }
}

